import { apiConstants,loadModalInfo} from '@/js/utils'
import footerMenu from '@/components/mainPage/footer'
import companyList from '@/components/password/companyList'

new Vue({
  el: "#app",
  data() {
    return {
      dataList: [],
      searchVal: ""
    }
  },
  created() {
    this.handlerSearch();
  },
  watch: {

  },
  methods: {
    handlerSearch(){
      let _this = this;
      _this.$ajax(apiConstants.company_getCompanyListByPassword, {
        closeToast:true,
        data: {
          passwordOrCompanyName: _this.searchVal
        },
        success: function (data) {
         _this.dataList = data;
        },
      })
    }
  },
  components: {footerMenu, companyList}
});
